package com.base

import android.app.Application
import android.content.Context
import com.clj.fastble.BleManager
import com.tencent.mmkv.MMKV

class MainApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        init()
    }

    private fun init() {
        MMKV.initialize(this)
        DeviceCenter.instance.initOther(this)
        DataCenter.instance.initOther(this)

        BleManager.getInstance().init(this)
        BleManager.getInstance()
            .enableLog(true)
            .setReConnectCount(1, 5000).operateTimeout = 5000

    }
}